<?php

class indexController extends Controller{
    public $inModel;
    public function __construct(){
        $this->inModel = new indexModel();
    }
    public function selecthero(){
        $data = $this->inModel->heroData();
        echo json_encode($data);
    }
    public function herodata(){
        $hid = isset($_POST['hid']) ? $_POST['hid'] : 0;
        $daya = $this->inModel->herodata($hid);
    }
}